# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=avogadro-molecules
pkgver=1.0.0
pkgrel=1
pkgdesc='Common molecule fragments for visualization in Avogadro'
arch=(any)
url='https://openchemistry.org/'
license=(BSD)
source=(https://github.com/OpenChemistry/molecules/archive/$pkgver/molecules-$pkgver.tar.gz)
sha256sums=('1d40abcb307aaad8a18673b01b1a812a9a4f64bc7d0ddc7ebe46548e12dc1979')

package() {
  mkdir -p "$pkgdir"/usr/share/avogadro2
  cp -ar molecules-$pkgver "$pkgdir"/usr/share/avogadro2/molecules
  install -Dm644 molecules-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
